﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace _180FrameWork.Common.Models
{
    public class PaginationData<T>
    {
        int _total = 0;
        int _totalPages = 0;
        IList<T> _rows = new List<T>();
        IList<T> _footer = new List<T>();

        public int total
        {
            get { return this._total; }
            set { this._total = value; }
        }
        public int totalPages
        {
            get { return this._totalPages; }
            set { this._totalPages = value; }
        }
        public IList<T> rows
        {
            get { return this._rows; }
            set { this._rows = value; }
        }
        public IList<T> footer
        {
            get { return this._footer; }
            set { this._footer = value; }
        }
    }

    public class PaginationData
    {
        int _total = 0;
        DataTable _rows;
        DataTable _footer = null;

        public int total
        {
            get { return this._total; }
            set { this._total = value; }
        }
        public DataTable rows
        {
            get { return this._rows; }
            set { this._rows = value; }
        }
        public DataTable footer
        {
            get { return this._footer; }
            set { this._footer = value; }
        }
    }
}
